package com.cjh.lms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cjh.lms.mapper.TClientMapper;
import com.cjh.lms.mapper.TUserMapper;
import com.cjh.lms.pojo.TUser;
import com.cjh.lms.pojo.TUserExample;

@Service
public class LoginRegisterService {
	@Autowired
	TUserMapper tUserMapper;

	@Autowired
	TClientMapper tClientMapper;

	public List<TUser> findByUserInfo(String username, String userpwd) {
		TUserExample userEx = new TUserExample();
		userEx.createCriteria().andUsernameEqualTo(username).andUserpwdEqualTo(userpwd);
		return tUserMapper.selectByExample(userEx);
	}
}
